﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Cnm.Core.Infrastructure;
using Cnm.Mvc.Web.Framework;
using Cnm.Mvc.Web.Framework.Controllers;

namespace Cnm.Mvc.Web.Controllers
{
    [LanguageSeoCode]
    public abstract partial class BasePublicController : BaseController
    {
        protected virtual ActionResult InvokeHttp404()
        {
            // Call target Controller and pass the routeData.
            //IController errorController = EngineContext.Current.Resolve<Cnm.Mvc.Web.Controllers.CommonController>();

            //var routeData = new RouteData();
            //routeData.Values.Add("controller", "Common");
            //routeData.Values.Add("action", "PageNotFound");

            //errorController.Execute(new RequestContext(this.HttpContext, routeData));

            return new EmptyResult();
        }

    }
}